home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / info / info.info-2 < prev    next >
Encoding:
GNU Info File  |  1995-09-01  |  23.2 KB  |  587 lines

  1. This is Info file ../info/info.info, produced by Makeinfo-1.55 from the
  2. input file info.texi.
  3.  
  4.    This file describes how to use Info, the on-line, menu-driven GNU
  5. documentation system.
  6.  
  7.    Copyright (C) 1989, 1992 Free Software Foundation, Inc.
  8.  
  9.    Permission is granted to make and distribute verbatim copies of this
  10. manual provided the copyright notice and this permission notice are
  11. preserved on all copies.
  12.  
  13.    Permission is granted to copy and distribute modified versions of
  14. this manual under the conditions for verbatim copying, provided that
  15. the entire resulting derived work is distributed under the terms of a
  16. permission notice identical to this one.
  17.  
  18.    Permission is granted to copy and distribute translations of this
  19. manual into another language, under the above conditions for modified
  20. versions, except that this permission notice may be stated in a
  21. translation approved by the Free Software Foundation.
  22.  
  23. 
  24. File: info.info,  Node: Parts of an Xref,  Next: Selecting Xrefs,  Up: Xref Commands
  25.  
  26. Parts of an Xref
  27. ----------------
  28.  
  29.   Cross references have two major parts: the first part is called the
  30. "label"; it is the name that you can use to refer to the cross
  31. reference, and the second is the "target"; it is the full name of the
  32. node that the cross reference points to.
  33.  
  34.   The target is separated from the label by a colon `:'; first the
  35. label appears, and then the target.  For example, in the sample menu
  36. cross reference below, the single colon separates the label from the
  37. target.
  38.  
  39.      * Foo Label: Foo Target.    More information about Foo.
  40.  
  41.   Note the `.' which ends the name of the target.  The `.' is not part
  42. of the target; it serves only to let Info know where the target name
  43. ends.
  44.  
  45.   A shorthand way of specifying references allows two adjacent colons to
  46. stand for a target name which is the same as the label name:
  47.  
  48.      * Foo Commands::        Commands pertaining to Foo.
  49.  
  50.   In the above example, the name of the target is the same as the name
  51. of the label, in this case `Foo Commands'.
  52.  
  53.   You will normally see two types of cross references while viewing
  54. nodes: "menu" references, and "note" references.  Menu references
  55. appear within a node's menu; they begin with a `*' at the beginning of
  56. a line, and continue with a label, a target, and a comment which
  57. describes what the contents of the node pointed to contains.
  58.  
  59.   Note references appear within the body of the node text; they begin
  60. with `*Note', and continue with a label and a target.
  61.  
  62.   Like `Next', `Prev' and `Up' pointers, cross references can point to
  63. any valid node.  They are used to refer you to a place where more
  64. detailed information can be found on a particular subject.  Here is a
  65. cross reference which points to a node within the Texinfo
  66. documentation:  *Note Writing an Xref: (texinfo)xref, for more
  67. information on creating your own texinfo cross references.
  68.  
  69. 
  70. File: info.info,  Node: Selecting Xrefs,  Prev: Parts of an Xref,  Up: Xref Commands
  71.  
  72. Selecting Xrefs
  73. ---------------
  74.  
  75.   The following table lists the Info commands which operate on menu
  76. items.
  77.  
  78. `1' (`menu-digit')
  79. `2' ... `9'
  80.      Within an Info window, pressing a single digit, (such as `1'),
  81.      selects that menu item, and places its node in the current window.
  82.      For convenience, there is one exception; pressing `0' selects the
  83.      *last* item in the node's menu.
  84.  
  85. `0' (`last-menu-item')
  86.      Select the last item in the current node's menu.
  87.  
  88. `m' (`menu-item')
  89.      Reads the name of a menu item in the echo area and selects its
  90.      node.  Completion is available while reading the menu label.
  91.  
  92. `M-x find-menu'
  93.      Moves the cursor to the start of this node's menu.
  94.  
  95.   This table lists the Info commands which operate on note cross
  96. references.
  97.  
  98. `f' (`xref-item')
  99. `r'
  100.      Reads the name of a note cross reference in the echo area and
  101.      selects its node.  Completion is available while reading the cross
  102.      reference label.
  103.  
  104.   Finally, the next few commands operate on menu or note references
  105. alike:
  106.  
  107. `TAB' (`move-to-next-xref')
  108.      Moves the cursor to the start of the next nearest menu item or note
  109.      reference in this node.  You can then use RET
  110.      (`select-reference-this-line' to select the menu or note reference.
  111.  
  112. `M-TAB' (`move-to-prev-xref')
  113.      Moves the cursor the start of the nearest previous menu item or
  114.      note reference in this node.
  115.  
  116. `RET' (`select-reference-this-line')
  117.      Selects the menu item or note reference appearing on this line.
  118.  
  119. 
  120. File: info.info,  Node: Window Commands,  Next: Printing Nodes,  Prev: Xref Commands,  Up: Using Stand-alone Info
  121.  
  122. Manipulating Multiple Windows
  123. =============================
  124.  
  125.   A "window" is a place to show the text of a node.  Windows have a
  126. view area where the text of the node is displayed, and an associated
  127. "mode line", which briefly describes the node being viewed.
  128.  
  129.   GNU Info supports multiple windows appearing in a single screen; each
  130. window is separated from the next by its modeline.  At any time, there
  131. is only one "active" window, that is, the window in which the cursor
  132. appears.  There are commands available for creating windows, changing
  133. the size of windows, selecting which window is active, and for deleting
  134. windows.
  135.  
  136. * Menu:
  137.  
  138. * The Mode Line::    What appears in the mode line?
  139. * Basic Windows::    Manipulating windows in Info.
  140. * The Echo Area::    Used for displaying errors and reading input.
  141.  
  142. 
  143. File: info.info,  Node: The Mode Line,  Next: Basic Windows,  Up: Window Commands
  144.  
  145. The Mode Line
  146. -------------
  147.  
  148.   A "mode line" is a line of inverse video which appears at the bottom
  149. of an info window.  It describes the contents of the window just above
  150. it; this information includes the name of the file and node appearing in
  151. that window, the number of screen lines it takes to display the node,
  152. and the percentage of text that is above the top of the window.  It can
  153. also tell you if the indirect tags table for this info file needs to be
  154. updated, and whether or not the info file was compressed when stored on
  155. disk.
  156.  
  157.   Here is a sample mode line for a window containing an uncompressed
  158. file named `dir', showing the node `Top'.
  159.  
  160.      -----Info: (dir)Top, 40 lines --Top---------------------------------------
  161.                  ^^   ^   ^^^        ^^
  162.                (file)Node #lines    where
  163.  
  164.   When a node comes from a file which is compressed on disk, this is
  165. indicated in the mode line with two small `z''s.  In addition, if the
  166. info file containing the node has been split into subfiles, the name of
  167. the subfile containing the node appears in the modeline as well:
  168.  
  169.      --zz-Info: (emacs)Top, 291 lines --Top-- Subfile: emacs-1.Z---------------
  170.  
  171.   When Info makes a node internally, such that there is no corresponding
  172. info file on disk, the name of the node is surrounded by asterisks
  173. (`*').  The name itself tells you what the contents of the window are;
  174. the sample mode line below shows an internally constructed node showing
  175. possible completions:
  176.  
  177.      -----Info: *Completions*, 7 lines --All-----------------------------------
  178.  
  179. 
  180. File: info.info,  Node: Basic Windows,  Next: The Echo Area,  Prev: The Mode Line,  Up: Window Commands
  181.  
  182. Window Commands
  183. ---------------
  184.  
  185.   It can be convenient to view more than one node at a time.  To allow
  186. this, Info can display more than one "window".  Each window has its own
  187. mode line (*note The Mode Line::.) and history of nodes viewed in that
  188. window (*note `history-node': Node Commands.).
  189.  
  190. `C-x o' (`next-window')
  191.      Selects the next window on the screen.  Note that the echo area
  192.      can only be selected if it is already in use, and you have left it
  193.      temporarily.  Normally, `C-x o' simply moves the cursor into the
  194.      next window on the screen, or if you are already within the last
  195.      window, into the first window on the screen.  Given a numeric
  196.      argument, `C-x o' moves over that many windows.  A negative
  197.      argument causes `C-x o' to select the previous window on the
  198.      screen.
  199.  
  200. `M-x prev-window'
  201.      Selects the previous window on the screen.  This is identical to
  202.      `C-x o' with a negative argument.
  203.  
  204. `C-x 2' (`split-window')
  205.      Splits the current window into two windows, both showing the same
  206.      node.  Each window is one half the size of the original window,
  207.      and the cursor remains in the original window.  The variable
  208.      `automatic-tiling' can cause all of the windows on the screen to
  209.      be resized for you automatically, please *note automatic-tiling:
  210.      Variables. for more information.
  211.  
  212. `C-x 0' (`delete-window')
  213.      Deletes the current window from the screen.  If you have made too
  214.      many windows and your screen appears cluttered, this is the way to
  215.      get rid of some of them.
  216.  
  217. `C-x 1' (`keep-one-window')
  218.      Deletes all of the windows excepting the current one.
  219.  
  220. `ESC C-v' (`scroll-other-window')
  221.      Scrolls the other window, in the same fashion that `C-v' might
  222.      scroll the current window.  Given a negative argument, the "other"
  223.      window is scrolled backward.
  224.  
  225. `C-x ^' (`grow-window')
  226.      Grows (or shrinks) the current window.  Given a numeric argument,
  227.      grows the current window that many lines; with a negative numeric
  228.      argument, the window is shrunk instead.
  229.  
  230. `C-x t' (`tile-windows')
  231.      Divides the available screen space among all of the visible
  232.      windows.  Each window is given an equal portion of the screen in
  233.      which to display its contents.  The variable `automatic-tiling'
  234.      can cause `tile-windows' to be called when a window is created or
  235.      deleted.  *Note `automatic-tiling': Variables.
  236.  
  237. 
  238. File: info.info,  Node: The Echo Area,  Prev: Basic Windows,  Up: Window Commands
  239.  
  240. The Echo Area
  241. -------------
  242.  
  243.   The "echo area" is a one line window which appears at the bottom of
  244. the screen.  It is used to display informative or error messages, and to
  245. read lines of input from you when that is necessary.  Almost all of the
  246. commands available in the echo area are identical to their Emacs
  247. counterparts, so please refer to that documentation for greater depth of
  248. discussion on the concepts of editing a line of text.  The following
  249. table briefly lists the commands that are available while input is being
  250. read in the echo area:
  251.  
  252. `C-f' (`echo-area-forward')
  253.      Moves forward a character.
  254.  
  255. `C-b' (`echo-area-backward')
  256.      Moves backward a character.
  257.  
  258. `C-a' (`echo-area-beg-of-line')
  259.      Moves to the start of the input line.
  260.  
  261. `C-e' (`echo-area-end-of-line')
  262.      Moves to the end of the input line.
  263.  
  264. `M-f' (`echo-area-forward-word')
  265.      Moves forward a word.
  266.  
  267. `M-b' (`echo-area-backward-word')
  268.      Moves backward a word.
  269.  
  270. `C-d' (`echo-area-delete')
  271.      Deletes the character under the cursor.
  272.  
  273. `DEL' (`echo-area-rubout')
  274.      Deletes the character behind the cursor.
  275.  
  276. `C-g' (`echo-area-abort')
  277.      Cancels or quits the current operation.  If completion is being
  278.      read, `C-g' discards the text of the input line which does not
  279.      match any completion.  If the input line is empty, `C-g' aborts
  280.      the calling function.
  281.  
  282. `RET' (`echo-area-newline')
  283.      Accepts (or forces completion of) the current input line.
  284.  
  285. `C-q' (`echo-area-quoted-insert')
  286.      Inserts the next character verbatim.  This is how you can insert
  287.      control characters into a search string, for example.
  288.  
  289. PRINTING CHARACTER (`echo-area-insert')
  290.      Inserts the character.
  291.  
  292. `M-TAB' (`echo-area-tab-insert')
  293.      Inserts a TAB character.
  294.  
  295. `C-t' (`echo-area-transpose-chars')
  296.      Transposes the characters at the cursor.
  297.  
  298.   The next group of commands deal with "killing", and "yanking" text.
  299. For an in depth discussion of killing and yanking, *note Killing and
  300. Deleting: (emacs)Killing.
  301.  
  302. `M-d' (`echo-area-kill-word')
  303.      Kills the word following the cursor.
  304.  
  305. `M-DEL' (`echo-area-backward-kill-word')
  306.      Kills the word preceding the cursor.
  307.  
  308. `C-k' (`echo-area-kill-line')
  309.      Kills the text from the cursor to the end of the line.
  310.  
  311. `C-x DEL' (`echo-area-backward-kill-line')
  312.      Kills the text from the cursor to the beginning of the line.
  313.  
  314. `C-y' (`echo-area-yank')
  315.      Yanks back the contents of the last kill.
  316.  
  317. `M-y' (`echo-area-yank-pop')
  318.      Yanks back a previous kill, removing the last yanked text first.
  319.  
  320.   Sometimes when reading input in the echo area, the command that needed
  321. input will only accept one of a list of several choices.  The choices
  322. represent the "possible completions", and you must respond with one of
  323. them.  Since there are a limited number of responses you can make, Info
  324. allows you to abbreviate what you type, only typing as much of the
  325. response as is necessary to uniquely identify it.  In addition, you can
  326. request Info to fill in as much of the response as is possible; this is
  327. called "completion".
  328.  
  329.   The following commands are available when completing in the echo area:
  330.  
  331. `TAB' (`echo-area-complete')
  332. `SPC'
  333.      Inserts as much of a completion as is possible.
  334.  
  335. `?' (`echo-area-possible-completions')
  336.      Displays a window containing a list of the possible completions of
  337.      what you have typed so far.  For example, if the available choices
  338.      are:
  339.           bar
  340.           foliate
  341.           food
  342.           forget
  343.      and you have typed an `f', followed by `?', the possible
  344.      completions would contain:
  345.           foliate
  346.           food
  347.           forget
  348.      i.e., all of the choices which begin with `f'.  Pressing SPC or
  349.      TAB would result in `fo' appearing in the echo area, since all of
  350.      the choices which begin with `f' continue with `o'.  Now, typing
  351.      `l' followed by `TAB' results in `foliate' appearing in the echo
  352.      area, since that is the only choice which begins with `fol'.
  353.  
  354. `ESC C-v' (`echo-area-scroll-completions-window')
  355.      Scrolls the completions window, if that is visible, or the "other"
  356.      window if not.
  357.  
  358. 
  359. File: info.info,  Node: Printing Nodes,  Next: Miscellaneous Commands,  Prev: Window Commands,  Up: Using Stand-alone Info
  360.  
  361. Printing Out Nodes
  362. ==================
  363.  
  364.   You may wish to print out the contents of a node as  a quick reference
  365. document for later use.  Info provides you with a command for doing
  366. this.  In general, we recommend that you use TeX to format the document
  367. and print sections of it, by running `tex' on the texinfo source file.
  368.  
  369. `M-x print-node'
  370.      Pipes the contents of the current node through the command in the
  371.      environment variable `INFO_PRINT_COMMAND'.  If the variable doesn't
  372.      exist, the node is simply piped to `lpr'.
  373.  
  374. 
  375. File: info.info,  Node: Miscellaneous Commands,  Next: Variables,  Prev: Printing Nodes,  Up: Using Stand-alone Info
  376.  
  377. Miscellaneous Commands
  378. ======================
  379.  
  380.   GNU Info contains several commands which self-document GNU Info:
  381.  
  382. `M-x describe-command'
  383.      Reads the name of an Info command in the echo area and then
  384.      displays a brief description of what that command does.
  385.  
  386. `M-x describe-key'
  387.      Reads a key sequence in the echo area, and then displays the name
  388.      and documentation of the Info command that the key sequence
  389.      invokes.
  390.  
  391. `M-x describe-variable'
  392.      Reads the name of a variable in the echo area and then displays a
  393.      brief description of what the variable affects.
  394.  
  395. `M-x where-is'
  396.      Reads the name of an Info command in the echo area, and then
  397.      displays a key sequence which can be typed in order to invoke that
  398.      command.
  399.  
  400. `C-h' (`get-help-window')
  401. `?'
  402.      Creates (or moves into) the window displaying `*Help*', and places
  403.      a node containing a quick reference card into it.  This window
  404.      displays the most concise information about GNU Info available.
  405.  
  406. `h' (`get-info-help-node')
  407.      Tries hard to visit the node `(info)Help'.  The info file
  408.      `info.texi' distributed with GNU Info contains this node.  Of
  409.      course, the file must first be processed with `makeinfo', and then
  410.      placed into the location of your info directory.
  411.  
  412.   Here are the commands for creating a numeric argument:
  413.  
  414. `C-u' (`universal-argument')
  415.      Starts (or multiplies by 4) the current numeric argument.  `C-u' is
  416.      a good way to give a small numeric argument to cursor movement or
  417.      scrolling commands; `C-u C-v' scrolls the screen 4 lines, while
  418.      `C-u C-u C-n' moves the cursor down 16 lines.
  419.  
  420. `M-1' (`add-digit-to-numeric-arg')
  421. `M-2' ... `M-9'
  422.      Adds the digit value of the invoking key to the current numeric
  423.      argument.  Once Info is reading a numeric argument, you may just
  424.      type the digits of the argument, without the Meta prefix.  For
  425.      example, you might give `C-l' a numeric argument of 32 by typing:
  426.  
  427.           `C-u 3 2 C-l'
  428.      or
  429.           `M-3 2 C-l'
  430.  
  431.   `C-g' is used to abort the reading of a multi-character key sequence,
  432. to cancel lengthy operations (such as multi-file searches) and to
  433. cancel reading input in the echo area.
  434.  
  435. `C-g' (`abort-key')
  436.      Cancels current operation.
  437.  
  438.   The `q' command of Info simply quits running Info.
  439.  
  440. `q' (`quit')
  441.      Exits GNU Info.
  442.  
  443.   If the operating system tells GNU Info that the screen is 60 lines
  444. tall, and it is actually only 40 lines tall, here is a way to tell Info
  445. that the operating system is correct.
  446.  
  447. `M-x set-screen-height'
  448.      Reads a height value in the echo area and sets the height of the
  449.      displayed screen to that value.
  450.  
  451.   Finally, Info provides a convenient way to display footnotes which
  452. might be associated with the current node that you are viewing:
  453.  
  454. `ESC C-f' (`show-footnotes')
  455.      Shows the footnotes (if any) associated with the current node in
  456.      another window.  You can have Info automatically display the
  457.      footnotes associated with a node when the node is selected by
  458.      setting the variable `automatic-footnotes'.  *Note
  459.      `automatic-footnotes': Variables.
  460.  
  461. 
  462. File: info.info,  Node: Variables,  Prev: Miscellaneous Commands,  Up: Using Stand-alone Info
  463.  
  464. Manipulating Variables
  465. ======================
  466.  
  467.   GNU Info contains several "variables" whose values are looked at by
  468. various Info commands.  You can change the values of these variables,
  469. and thus change the behaviour of Info to more closely match your
  470. environment and info file reading manner.
  471.  
  472. `M-x set-variable'
  473.      Reads the name of a variable, and the value for it, in the echo
  474.      area and then sets the variable to that value.  Completion is
  475.      available when reading the variable name; often, completion is
  476.      available when reading the value to give to the variable, but that
  477.      depends on the variable itself.  If a variable does *not* supply
  478.      multiple choices to complete over, it expects a numeric value.
  479.  
  480. `M-x describe-variable'
  481.      Reads the name of a variable in the echo area and then displays a
  482.      brief description of what the variable affects.
  483.  
  484.   Here is a list of the variables that you can set in Info.
  485.  
  486. `automatic-footnotes'
  487.      When set to `On', footnotes appear and disappear automatically.
  488.      This variable is `On' by default.  When a node is selected, a
  489.      window containing the footnotes which appear in that node is
  490.      created, and the footnotes are displayed within the new window.
  491.      The window that Info creates to contain the footnotes is called
  492.      `*Footnotes*'.  If a node is selected which contains no footnotes,
  493.      and a `*Footnotes*' window is on the screen, the `*Footnotes*'
  494.      window is deleted.  Footnote windows created in this fashion are
  495.      not automatically tiled so that they can use as little of the
  496.      display as is possible.
  497.  
  498. `automatic-tiling'
  499.      When set to `On', creating or deleting a window resizes other
  500.      windows.  This variable is `Off' by default.  Normally, typing
  501.      `C-x 2' divides the current window into two equal parts.  When
  502.      `automatic-tiling' is set to `On', all of the windows are resized
  503.      automatically, keeping an equal number of lines visible in each
  504.      window.  There are exceptions to the automatic tiling;
  505.      specifically, the windows `*Completions*' and `*Footnotes*' are
  506.      *not* resized through automatic tiling; they remain their original
  507.      size.
  508.  
  509. `visible-bell'
  510.      When set to `On', GNU Info attempts to flash the screen instead of
  511.      ringing the bell.  This variable is `Off' by default.  Of course,
  512.      Info can only flash the screen if the terminal allows it; in the
  513.      case that the terminal does not allow it, the setting of this
  514.      variable has no effect.  However, you can make Info perform
  515.      quietly by setting the `errors-ring-bell' variable to `Off'.
  516.  
  517. `errors-ring-bell'
  518.      When set to `On', errors cause the bell to ring.  The default
  519.      setting of this variable is `On'.
  520.  
  521. `gc-compressed-files'
  522.      When set to `On', Info garbage collects files which had to be
  523.      uncompressed.  The default value of this variable is `Off'.
  524.      Whenever a node is visited in Info, the info file containing that
  525.      node is read into core, and Info reads information about the tags
  526.      and nodes contained in that file.  Once the tags information is
  527.      read by Info, it is never forgotten.  However, the actual text of
  528.      the nodes does not need to remain in core unless a particular info
  529.      window needs it.  For non-compressed files, the text of the nodes
  530.      does not remain in core when it is no longer in use.  But
  531.      de-compressing a file can be a time consuming operation, and so
  532.      Info tries hard not to do it twice.  `gc-compressed-files' tells
  533.      Info it is okay to garbage collect the text of the nodes of a file
  534.      which was compressed on disk.
  535.  
  536. `show-index-match'
  537.      When set to `On', the portion of the matched search string is
  538.      highlighted in the message which explains where the matched search
  539.      string was found.  The default value of this variable is `On'.
  540.      When Info displays the location where an index match was found,
  541.      (*note `next-index-match': Searching Commands.), the portion of the
  542.      string that you had typed is highlighted by displaying it in the
  543.      inverse case from its surrounding characters.
  544.  
  545. `scroll-behaviour'
  546.      Controls what happens when forward scrolling is requested at the
  547.      end of a node, or when backward scrolling is requested at the
  548.      beginning of a node.  The default value for this variable is
  549.      `Continuous'.  There are three possible values for this variable:
  550.  
  551.     `Continuous'
  552.           Tries to get the first item in this node's menu, or failing
  553.           that, the `Next' node, or failing that, the `Next' of the
  554.           `Up'.  This behaviour is identical to using the `]'
  555.           (`global-next-node') and `[' (`global-prev-node') commands.
  556.  
  557.     `Next Only'
  558.           Only tries to get the `Next' node.
  559.  
  560.     `Page Only'
  561.           Simply gives up, changing nothing.  If `scroll-behaviour' is
  562.           `Page Only', no scrolling command can change the node that is
  563.           being viewed.
  564.  
  565. `scroll-step'
  566.      The number of lines to scroll when the cursor moves out of the
  567.      window.  Scrolling happens automatically if the cursor has moved
  568.      out of the visible portion of the node text when it is time to
  569.      display.  Usually the scrolling is done so as to put the cursor on
  570.      the center line of the current window.  However, if the variable
  571.      `scroll-step' has a nonzero value, Info attempts to scroll the
  572.      node text by that many lines; if that is enough to bring the
  573.      cursor back into the window, that is what is done.  The default
  574.      value of this variable is 0, thus placing the cursor (and the text
  575.      it is attached to) in the center of the window.  Setting this
  576.      variable to 1 causes a kind of "smooth scrolling" which some
  577.      people prefer.
  578.  
  579. `ISO-Latin'
  580.      When set to `On', Info accepts and displays ISO Latin-1 characters.
  581.      By default, Info assumes an ASCII character set.  `ISO-Latin' tells
  582.      Info that it is running in an environment where the European
  583.      standard character set is in use, and allows you to input such
  584.      characters to Info, as well as display them.
  585.  
  586.  
  587.